MY_PATH:=$(call my-dir)

LOCAL_PATH:= $(MY_PATH)/libavutil
include $(CLEAR_VARS)
include $(MY_PATH)/av.mk
LOCAL_MODULE := libavutil
include $(BUILD_STATIC_LIBRARY)

LOCAL_PATH:= $(MY_PATH)/libswscale
include $(CLEAR_VARS)
include $(MY_PATH)/av.mk
LOCAL_MODULE := libswscale
include $(BUILD_STATIC_LIBRARY)

LOCAL_PATH:= $(MY_PATH)/libavcodec
include $(CLEAR_VARS)
include $(MY_PATH)/av.mk
LOCAL_MODULE := libavcodec
include $(BUILD_STATIC_LIBRARY)

LOCAL_PATH:= $(MY_PATH)/libavfilter
include $(CLEAR_VARS)
include $(MY_PATH)/av.mk
LOCAL_MODULE := libavfilter
include $(BUILD_STATIC_LIBRARY)

LOCAL_PATH:= $(MY_PATH)/libavformat
include $(CLEAR_VARS)
include $(MY_PATH)/av.mk
LOCAL_MODULE := libavformat
LOCAL_CFLAGS += -include "string.h" -Dipv6mr_interface=ipv6mr_ifindex
include $(BUILD_STATIC_LIBRARY)

LOCAL_PATH := $(MY_PATH)
include $(CLEAR_VARS)
LOCAL_MODULE := libffmpeg
LOCAL_WHOLE_STATIC_LIBRARIES := libavformat libavfilter libavcodec libswscale libavutil
LOCAL_LDFLAGS += -L$(SYSROOT)/usr/lib -lz -lm
LOCAL_LDLIBS := -llog
LOCAL_ARM_MODE := arm
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
#	LOCAL_ARM_NEON := true
endif
include $(BUILD_SHARED_LIBRARY)
